import request from '@/utils/request'
/**
 * 获取代币基础设置信息
 * http://192.168.88.247:4999/web/#/196/1524
 * @param {Object} data
 * @returns
 */
export function getSettingList (data) {
  return request({
    url: '/virtual-coin/admin/v1/setting/list',
    method: 'post',
    data
  })
}
/**
 * 代币基础信息设置
 * http://192.168.88.247:4999/web/#/196/1523
 * @param {Object} data
 * @returns
 */
export function setPaySetting (data) {
  return request({
    url: '/virtual-coin/admin/v1/setting',
    method: 'post',
    data
  })
}
/**
 * 代币订单列表
 * http://192.168.88.247:4999/web/#/196/1525
 * @param {Object} data
 * @returns
 */
export function getOrderList (data) {
  return request({
    url: '/virtual-coin/admin/v1/order/list',
    method: 'post',
    data
  })
}
/**
 * 订单详情
 * http://192.168.88.247:4999/web/#/196/1529
 * @param {*} id
 * @returns
 */
export function getOrderDetail (id) {
  return request({
    url: '/virtual-coin/admin/v1/order/detail/' + id,
    method: 'get'
  })
}

/**
 * 资源列表
 * http://192.168.88.247:4999/web/#/196/2013
 * @param {*}
 * @returns
 */
export function getResourceList (id) {
  return request({
    url: '/virtual-coin/admin/v1/resource/list',
    method: 'get'
  })
}
/**
 * 添加资源
 * http://192.168.88.247:4999/web/#/196/2014
 * @param {*}
 * @returns
 */
export function addResource (data) {
  return request({
    url: '/virtual-coin/admin/v1/resource/add',
    method: 'post',
    data
  })
}
/**
 * 更新资源
 * http://192.168.88.247:4999/web/#/196/2015
 * @param {*}
 * @returns
 */
export function updateResource (data) {
  return request({
    url: '/virtual-coin/admin/v1/resource/update',
    method: 'post',
    data
  })
}
